#-------------------------------------------------
#
# Project created by QtCreator 2016-12-09T08:31:16
#
#-------------------------------------------------

DEFINES+=D_FOR_LMS_TEST

QT += core


CONFIG  -= console
TEMPLATE = app
TARGET = GmappingTest



##执行文件目录
DESTDIR = ../../bin

INCLUDEPATH+=/opt/ros/kinetic/include
#hualei will cause compile error, 一般不要加-L 参数指明库搜索路径，可能导致qt其它地方错误的找到了这个目录下的库，从而编译失败或者编译不匹配存在潜在coredump风险
#LIBS+= -L/usr/lib/x86_64-linux-gnu -lboost_thread
#LIBS+= -L/usr/lib/x86_64-linux-gnu -lboost_system
LIBS+= /usr/lib/x86_64-linux-gnu/libboost_thread.so
LIBS+= /usr/lib/x86_64-linux-gnu/libboost_system.so

LIBS +=-L/opt/ros/kinetic/lib/ -ldynamic_reconfigure_config_init_mutex \
        -lroslib \
        -lrosconsole \
        -lroscpp \
        -lxmlrpcpp \
        -lrospack \
        -lrostime \
        -ltf \
        -ltf2 \
        -ltf2_ros \
        -lserial \
        -lroscpp_serialization \
        -lactionlib \
        -lrosbag \
        -lrosbag_storage \
        -lroslz4 \
        -lmessage_filters \
        -lrosconsole_backend_interface \
        -lrosconsole_bridge \
        -lrosconsole_log4cxx \
        -lcpp_common\
        -lurg_c_wrapper\
        -lopen_urg_sensor\
        -lliburg_c\
        -llaser_proc_ROS\
        -llaser_proc_library\
        -llaser_transport\
        -llaser_publisher\
        -lscanmatcher\
       -lsensor_range\
        -lsensor_odometry\
-lsensor_base\
-lutils\
-lrosbag_storage\
-lgridfastslam


#LIBS +=/usr/local/lib/x86_64-linux-gnu/libuvc.so
#LIBS +=/usr/lib/x86_64-linux-gnu/libusb-1.0.so
LIBS +=/usr/lib/x86_64-linux-gnu/libconsole_bridge.so
#LIBS +=-L/usr/local/lib/x86_64-linux-gnu -luvc
#LIBS +=-L/usr/lib/x86_64-linux-gnu -lusb


#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory
MOC_DIR +=../../build/tmpBuildDirectory
OBJECTS_DIR += ../../build/tmpBuildDirectory
RCC_DIR += ../../build/tmpBuildDirectory

SUBDIRS += \
    GmappingMapTest.pro

HEADERS += \
    src/slam_gmapping.h

SOURCES += \
    src/main.cpp \
    src/slam_gmapping.cpp






